#include "position.h"

direction convertIntToDirection(int a)
{
    direction b;
    switch(a)
    {
        case 0:
            b=HAUT;
        break;
        case 1:
            b=DROITE;
        break;
        case 2:
            b=BAS;
        break;
        default:
            b=GAUCHE;
        break;
    }
return b;

};
int randab(int a,int b)
{
    return rand()%(b-a)+a;
}
